class Dog:
    def game(self):
        print('普通的狗只能简单的玩耍')
class XiaoTianQuan(Dog):
    def game(self):
        print('哮天犬 需要在天上玩耍')

class Person:
    def play(self,dog):
        #dog=d
        #d.gome()
        dog.game()
d=Dog()

xtq=XiaoTianQuan()

xiaoming=Person()

xiaoming.play(d)
